const routes = [
    {
        path:'/',
        component:'index',
        title:'首页'
    },
    {
        path:'/demo/:id',
        component:'demo',
        title:'测试'
    },
    {
        path:'/personal',
        component:'personal',
        title:'个人详情页',
        routes:[
            {
                path:'/personal',
                redirect:'order'
            },
            {
                path:'/personal/order',
                component:'@/pages/personal/order'
            },
            {
                path:'/personal/info',
                component:'@/pages/personal/info'
            }
        ]
    },
    {
        path:'*',
        component:'404',
        title:'404'
    }
]
export default routes